.nv-related-clearfix {
  display: table;
  content: " ";
  width: 100%;
}

.woocommerce .neve-related-slider-wrap {
  position: relative;
  padding: 0 35px;
  display: block;

  .products > div > div {
    padding: 0 10px;
  }

  ul.products li.product {
    width: 100%;
    margin: 0;
  }
}

.woocommerce div.product div.images .flex-control-thumbs.neve-slider li {
  width: 100%;
}

.neve-slider-control {
  user-select: none;
  width: 25px;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  font-size: 2.5em;
  font-weight: 800;
  display: flex;
  align-items: center;
  opacity: .9;

  &:hover {
    opacity: 1;
  }
}

.nv-left-gallery div.product {
  .tns-outer {
    align-self: flex-start;
    position: relative;
  }

  .onsale {
    left: 57px;
  }

  div.images {
    display: flex;
    flex-direction: row-reverse;

    .flex-viewport {
      width: 100%;
    }

    .flex-control-thumbs {
      width: 70px;
      flex-direction: column;
      flex-wrap: nowrap;
      margin: -5px 5px 0 -5px;

      li {
        width: 100%;
      }
    }
  }
}

.tns-ovh {
  overflow: hidden;
}

.tns-visually-hidden {
  display: none;
}

.nv-slider-gallery  {
  .woocommerce-product-gallery .tns-outer {
    position: relative;
    margin-top: 5px;
  }
  div.product div.images .flex-control-thumbs {
    margin: 5px 0 0;
    li {
      padding: 0;
    }
  }
  .neve-slider-control.prev {
    left: 0;
  }.neve-slider-control.next {
    right: 0;
  }
  &:not(.nv-left-gallery) .neve-slider-control {
    top: 5px;
    bottom: 0;
  }
  .tns-ovh:hover .neve-slider-control {
    background: rgba(255, 255, 255, .75);
  }


  &.nv-left-gallery {
    .tns-ovh {
      position: relative;
    }
    .woocommerce-product-gallery .tns-outer {
      margin: 0 10px 0 0;
    }
    div.product div.images .flex-control-thumbs {
      margin: 0;
      li:last-child:after {
        display: block;
        height: 10px;
        content: " ";
      }
    }

    div.product .onsale {
      left: 80px;
    }

    .woocommerce-product-gallery .neve-slider-control {
      width: 100%;
      justify-content: center;

      &.next {
        top: unset;
        bottom: 10px;
        right: unset;
      }

      &.prev {
        top: 0;
        left: unset;
      }
    }
  }
}

.related.products {
  &:hover .neve-slider-control {
    background: rgba(255, 255, 255, .75);
  }

  .tns-ovh {
    margin: 0 5px;
    position: relative;
  }

  .neve-slider-control {
    top: 0;
    bottom: 0;
    &.prev {
      left: 0;
    }
    &.next {
      right: 0;
    }
  }

  .products.tns-slider {
    display: flex;
    li.product {
      margin: 0;
    }
  }
}

.woocommerce span.onsale {
  &.outside {
    left: -10px;
    top: -5px;
  }
}

.woocommerce button.button.single_add_to_cart_button.loading{
  padding-right: 3em;
}

.nv-product-nav-wrap{
  position: relative;
  margin-bottom: 10px;
}

.nv-product-nav {
  width: 100%;
  display: inline-block;
  li.next-li {
    float: left;
    a{
      margin-right: 10px;
    }
  }

  li.prev-li {
    float: right;
    a{
      margin-left: 10px;
    }
  }

  li {
    position: relative;

    a.nv-nav-text {
      font-size: 12px;
      display: inline-block;
    }

    svg{
      display: inline-block;
      vertical-align: middle;
    }
  }
}

.nv-has-product-nav{
  &.woocommerce span.onsale{
    top: calc( 100% + 10px );
    &.outside{
      top: calc( 100% + 5px );
    }
  }
}

@mixin product-nav--laptop() {
  .nv-product-nav-wrap {
    text-align: right;
    z-index: 1;
  }

  .nv-product-nav {
    .nv-button {
      font-size: .8em;
      font-weight: 600;
      padding: 8px 12px;
      transition: all .15s ease-in-out;
      text-align: center;
      vertical-align: middle;
      border: 1px solid transparent;
      border-radius: 3px;
      text-transform: uppercase;
      cursor: pointer;
      line-height: normal;
      font-family: inherit;
      &:hover {
        text-decoration: none;
        opacity: .9;
      }

      .nv-button-secondary {
        border: 1px solid;
        background-color: transparent;
        font-weight: 600;
        color: $gray-color;
        &:hover {
          background: transparent;
        }
      }
    }

    li {
      display: inline-block;
      margin-left: 3px;

      &:first-child {
        margin-left: 0;
      }

      a.nv-nav-text {
        display: none;
      }

      &.next-li, &.prev-li{
        float: none;
        a{
          margin: 0;
        }
      }
    }
  }
}
